package org.mysfit.ctp4j.infra.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 操作系统信息判断工具类
 * 
 * @author long.gf
 *
 */
public class CtpTypeConstans {
	
	public static char THOST_FTDC_TC_IOC = '1';

	public static char THOST_FTDC_TC_GFD = '3';
	
	public static char THOST_FTDC_VC_AV = '1';
	
	public static char THOST_FTDC_HF_Speculation = '1';
	
	public static char THOST_FTDC_OF_Open  = '0';
	
	public static char THOST_FTDC_OF_Close = '1';

	public static char THOST_FTDC_D_Buy  = '0';
	
	public static char THOST_FTDC_D_Sell  = '1';

	public static char THOST_FTDC_OPT_AnyPrice = '1';
	
	public static char THOST_FTDC_OPT_LimitPrice  = '2';
	
	public static char THOST_FTDC_OPT_BestPrice  = '3';
	
	public static char THOST_FTDC_OPT_LastPrice  = '4';
	
	public static char THOST_FTDC_CC_Immediately = '1';
	
	public static char THOST_FTDC_FCC_NotForceClose = '1';
	
	public static char THOST_FTDC_AF_Delete = '0';

	public static char THOST_FTDC_PD_Long =  '2';
	
	public static char THOST_FTDC_PD_Short =  '3';
	
	public static String CZCE = "CZCE";
	
	public static String DCE = "DCE";

	public static String SHFE = "SHFE";

	public static String CFFEX = "CFFEX";

	public static Map<String, String> EXCHANGE_MAP = new HashMap<String, String>();
	
	static {
		EXCHANGE_MAP.put("v2305", DCE);
		EXCHANGE_MAP.put("FG305", CZCE);
		EXCHANGE_MAP.put("MA305", CZCE);
		EXCHANGE_MAP.put("rb2305", SHFE);
		EXCHANGE_MAP.put("SA305", CZCE);
	}
	
}
